package com.spring.springboot.query;

import com.spring.springboot.sys.core.model.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 用户(User)参数体
 *
 * @author 宋义州
 * @since 2022-07-23 01:41:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "User查询")
public class UserQuery extends PageParam {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号码")
    private String idCard;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "启用状态(0：启用、1：禁用)")
    private Integer status;

    @ApiModelProperty(value = "删除标记(0：未删除、1：已删除)")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}

